-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Port #[must_use] to new attribute parsing infrastructure
#142780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
|
Some changes occurred in compiler/rustc_attr_parsing Some changes occurred in compiler/rustc_passes/src/check_attr.rs Some changes occurred in src/tools/clippy cc @rust-lang/clippy Some changes occurred in compiler/rustc_attr_data_structures |
| | AttributeKind::Repr { .. } | ||
| | AttributeKind::Align { .. }, | ||
| | AttributeKind::Align { .. } | ||
| | AttributeKind::MustUse { .. }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added MustUse here but not removed it from the ALLOW_LIST above, because you also seem to not have done this for the other attributes. Is this correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just rewritten the naked attribute, so this shouldn't be necessary anymore. but dw, I'll do the rebase on there
74be5fa to
49cf486
Compare
|
Rebased to solve merge conflicts |
This comment has been minimized.
This comment has been minimized.
49cf486 to
7eb1d5c
Compare
|
These commits modify Please ensure that if you've changed the output:
cc @aDotInTheVoid, @obi1kenobi rustdoc-json-types is a public (although nightly-only) API. If possible, consider changing |
b17cbe2 to
f549f43
Compare
|
☔ The latest upstream changes (presumably #142794) made this pull request unmergeable. Please resolve the merge conflicts. |
f549f43 to
e4b7167
Compare
|
Rebased to solve merge conflicts |
f031214 to
eeb53ac
Compare
|
Rebased to solve merge conflicts |
This comment has been minimized.
This comment has been minimized.
eeb53ac to
0d04ef3
Compare
|
☔ The latest upstream changes (presumably #142826) made this pull request unmergeable. Please resolve the merge conflicts. |
0d04ef3 to
11d9029
Compare
|
@bors r+ rollup |
|
The commit message is wrong |
|
Woops sorry, fixed! Working on a few too many PRs at the same time :P |
11d9029 to
f42da01
Compare
Signed-off-by: Jonathan Brouwer <[email protected]>
|
Rebased to solve merge conflicts |
f42da01 to
b24df42
Compare
|
@bors r+ rollup |
Rollup of 10 pull requests Successful merges: - #142458 (Merge unboxed trait object error suggestion into regular dyn incompat error) - #142593 (Add a warning to LateContext::get_def_path) - #142594 (Add DesugaringKind::FormatLiteral) - #142740 (Clean-up `FnCtxt::is_destruct_assignment_desugaring`) - #142780 (Port `#[must_use]` to new attribute parsing infrastructure) - #142798 (Don't fail to parse a struct if a semicolon is used to separate fields) - #142856 (Add a few inline directives in rustc_serialize.) - #142868 (remove few allow(dead_code)) - #142874 (cranelift: fix target feature name typo: "fxsr") - #142877 (Document why tidy checks if `eslint` is installed via `npm`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #142780 - JonathanBrouwer:must_use_new_attr, r=jdonszelmann Port `#[must_use]` to new attribute parsing infrastructure Ports `must_use` to the new attribute parsing infrastructure for #131229 (comment) r? `@jdonszelmann`
Ports
must_useto the new attribute parsing infrastructure for #131229 (comment)r? @jdonszelmann